package com.rs.qm.modules.sms.service.impl;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.rs.qm.common.utils.PageUtils;
import com.rs.qm.common.utils.Query;
import com.rs.qm.modules.sms.dao.MsgPushedDao;
import com.rs.qm.modules.sms.entity.MsgPushedEntity;
import com.rs.qm.modules.sms.service.MsgPushedService;
import org.springframework.stereotype.Service;

import java.util.Map;


@Service("msgPushedService")
public class MsgPushedServiceImpl extends ServiceImpl<MsgPushedDao, MsgPushedEntity> implements MsgPushedService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        Page<MsgPushedEntity> page = this.selectPage(
                new Query<MsgPushedEntity>(params).getPage(),
                new EntityWrapper<>()
        );

        return new PageUtils(page);
    }

}